//
//  MYNewsSearchCell.m
//  MuYing
//
//  Created by tbb on 2020/2/28.
//  Copyright © 2020 TBB. All rights reserved.
//

#import "MYNewsSearchCell.h"
#import "MYNewsSearchModel.h"
@implementation MYNewsSearchCell

-(void)setSearchModel:(MYNewsSearchModel *)searchModel {
    _searchModel = searchModel;
    self.titleLb.text = searchModel.title;
    [self.newsIcon setImageURL:[NSURL URLWithString:searchModel.informationImage]];
    self.likeCountLb.text = [NSString stringWithFormat:@"%@ %@",kYQLS(@"点赞数"),searchModel.likeNumber];
    self.timeLb.text = searchModel.createTimeStr;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    self.newsIcon.layer.cornerRadius = 8.0;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
